package com.store.entities;

import org.springframework.stereotype.Component;
import com.common.entities.AbstractDomainEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Component
@Entity
@Table(name = "food")
public class Store
        extends AbstractDomainEntity{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Schema(description = "菜品id")
    @Column(name = "id")
    private Integer id;
    @Schema(description = "菜品名称")
    @Column(name = "name")
    private String name;
    @Schema(description = "菜品介绍")
    @Column(name = "explain")
    private String explain1;
    @Schema(description = "菜品价格")
    @Column(name = "price")
    private BigDecimal price;
    @Schema(description = "所属商家")
    @Column(name = "businessId")
    private Integer businessid;
    @Schema(description = "备注")
    @Column(name = "remarks")
    private String remarks;
    @Schema(description = "菜品图片")
    @Column(name = "img")
    private String img;
}

